"""
@FileName：3下载mp4.py
@Author：lmz
@Time：2021/5/21 21:20
用requets库下载mp4视频
      https://www.pearvideo.com/
"""
import requests
url = 'https://www.pearvideo.com/'
resp = requests.get(url)
with open('test.mp4', "wb") as mp4:
    for chunk in resp.iter_content(chunk_size=1024 * 1024):
        if chunk:
            mp4.write(chunk)
